package wodegua.d12_math;

import java.io.IOException;

public class RuntimeTest {
    public static void main(String[] args) throws IOException, InterruptedException {
        Runtime r = Runtime.getRuntime();

        System.out.println(r.availableProcessors());

        System.out.println(r.totalMemory() /1024.0/1024.0 + "MB");
        System.out.println(r.freeMemory() /1024.0/1024.0 + "MB");

        Process p = r.exec("D:\\Program Files (x86)\\DingDing\\DingtalkLauncher.exe");
        Thread.sleep(100);
        p.destroy();
    }
}
